package com.example.backend.mapper;

import org.apache.ibatis.annotations.*;
import com.example.backend.entity.Suggestion;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

@Mapper
@Component
public interface SuggestionMapper {

    //意见反馈
    @Insert("insert into suggestion (suggestionId,userId,content,date)   values(#{suggestionId},#{userid},#{content},#{date})")
    int addSuggestions(@Param("suggestionId") int suggestionId, @Param("userid") int userId, @Param("content") String content, @Param("date") String date);

}
